package com.Tools.Calligraphy
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.geom.Point;
	
	
	public class BeginWrite extends Sprite
	{
		[Embed(source="com/Tools/Calligraphy/Brush/begin_1.png")]
		private var b1:Class;
		
		[Embed(source="com/Tools/Calligraphy/Brush/begin_2.png")]
		private var b2:Class;
		
		[Embed(source="com/Tools/Calligraphy/Brush/begin_3.png")]
		private var b3:Class;
		
		[Embed(source="com/Tools/Calligraphy/Brush/begin_4.png")]
		private var b4:Class;
		
		public function BeginWrite(_start:Point)
		{
			super();
			
			this.x=_start.x;
			this.y=_start.y;
			
			var i:int=Math.ceil(Math.random()*4);
			var temp:DisplayObject;
			if(i==1){
				temp=new b1();
			}else if(i==2){
				temp=new b2();
			}else if(i==3){
				temp=new b3();
			}else{
				temp=new b4();
			}
			
			temp.x=-temp.width/2;
			temp.y=-temp.height/2;
			this.addChild(temp);
		}
	}
}